package com.guigu.health.dao;

import com.guigu.health.pojo.CheckGroupResult;
import com.guigu.health.pojo.CheckGroup_CheckItemKey;
import com.guigu.health.pojo.CheckGroup_CheckItem_ResultMap;
import com.guigu.health.pojo.CheckItem;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName:CheckGroup_Keys_CheckItemMapper
 * @Description:查询检查组,检查项
 * @Author:longtao
 * @Date:2021/3/23
 * @Version:1.0
 */
public interface CheckGroup_Keys_CheckItemMapper {
    /**
     * 查询检查组
     *
     * @return
     */
    public List<CheckGroupResult> queryGroupAllList();

    /**
     * 根据ID查询出它对应的表的id
     *
     * @param id
     * @return
     */
    public CheckGroup_CheckItem_ResultMap queryCheckGroupID(@Param("id") Integer id);

    /**
     * 查询检查项
     *
     * @param id
     * @return
     */
    public List<CheckItem> queryCheckItemAll(@Param("id") Integer id);

    /**
     * 批量添加
     * @param list
     * @return
     */
    public Integer batchAdd(@Param("list") List<CheckGroup_CheckItemKey> list);
}
